import type { PagePathType } from '@/common/constants'

/**
 * 跳转页面
 * @param url
 * @author lian
 */
export const goToPage = (url: PagePathType | string) => {
  uni.navigateTo({
    url,
  })
}

/**
 * 切换到tabbar
 * @param url
 * @author lian
 */
export const goToSwitchTab = (url: PagePathType | string) => {
  uni.switchTab({
    url,
  })
}
